.preview-img-modal {
  background: transparent;

  .ant-modal {
    border-radius: 6px;
    overflow: hidden;
  }

  /deep/ .dpro-modal {
    .dpro-modal-close {
      right: 20px;
      top: 20px;

      .dpro-modal-close-x {
        display: block;
        width: 40px;
        height: 40px;
        line-height: 42px;
        font-size: 18px;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-text, #fff);
      }
    }

    .dpro-modal-header {
      height: auto;
      padding: 30px 50px 20px;
      color: #fff;
      background: transparent;
      border-bottom: 1px solid transparent;
      border-radius: 4px 4px 0 0;

      .dpro-modal-title {
        font-size: 26px;
        line-height: 30px;
        text-align: left;
        color: var(--primary-text, #fff);
      }
    }

    .dpro-modal-body {
      position: relative;
      padding: 10px 50px;
      overflow: hidden;
      border-radius: 4px;

      .add-device-wrap {
        display: flex;
        height: 360px;

        .add-device-left {
          width: 380px;

          .pagin {
            padding: 6px 10px;
          }
        }

        .add-device-right {
          width: 280px;

          .title {
            padding: 3px 4px 3px 14px;
            display: flex;
            align-items: center;

            .title-right {
              flex: 1;
            }

            .title-right {
              font-size: 12px;
              padding: 3px 8px;
              border-radius: 10px;
            }
          }

          .list {
            display: flex;
            flex-direction: column;

            .item {
              // display: flex;

              .item-text {
                display: flex;
                align-items: center;
                margin-bottom: 5px;

                img {
                  margin-right: 6px;
                }
              }
            }
          }
          .dpro-checkbox-box{
            display: flex;
            align-items: center;
          }
          .icon-device {
            width: 24px;
            margin-right: 0 !important;
          }
          .icon-device-name{
            line-height: 30px;
            margin-left: 2px;
          }
          .item-text{
            margin-bottom: 0 !important;
          }
          .dpro-checkbox__inner {
            position: relative;
            top: 0;
            left: 0;
            display: block;
            width: 0.083333rem;
            height: 0.083333rem;
            border: 0.005208rem solid transparent;
            border-radius: 0.010417rem;
            margin: 0 0.020833rem 0 0.010417rem;
            border-collapse: separate;
            transition: all 0.3s;
            &:after{
              position: absolute;
              top: 50%;
              left: 22%;
              display: table;
              border: 0.010417rem solid #fff;
              border-top: 0;
              border-left: 0;
              transform: rotate(45deg) scale(1) translate(-50%, -50%);
              opacity: 1;
              transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
              content: " ";
            }
          }
        }

        .add-device-left,
        .add-device-right {
          display: flex;
          flex-direction: column;
          height: 100%;
          color: var(--primary-text, #fff);
          border-radius: 4px;

          .title {
            display: flex;
            padding: 6px 10px;
          }

          .list {
            display: flex;
            flex: 1;
            overflow: auto;
            flex-direction: column;
            &::-webkit-scrollbar {
              display: none;
            }
            .item {
              padding: 6px 10px 0;

              .item-check {
                padding-right: 8px;
              }

              .item-name {
                padding-left: 8px;
                margin-top: 2px;
              }
            }
          }
        }

        .add-device-center {
          flex: 1;

          .add-btn {
            margin: 68px 14% 36px;
            width: 64px;
            overflow: hidden;
            span {
              display: inline-block;
              vertical-align: middle;
            }

            img {
              display: inline-block;
              vertical-align: middle;
              transform: rotate(-90deg);
            }
          }

          .del-btn {
            margin: 0 14% 96px;
            width: 64px;

            span {
              display: inline-block;
              vertical-align: middle;
            }

            img {
              display: inline-block;
              vertical-align: middle;
              margin-left: -10px;
              transform: rotate(90deg);
            }
          }

          .rest-btn {
            margin: 0 14%;
            width: 64px;
          }
        }
      }
    }

    // 设备选择
    .add-device-wrap {

      .add-device-left,
      .add-device-right {
        .title {
          background: rgba(255, 255, 255, 0.1);
          border-radius: 4px 4px 0 0;
        }
      }

      .add-device-left,
      .add-device-right {
        .list {
          background: rgba(255, 255, 255, 0.05);
          border-radius: 0 0 4px 4px;
        }
      }

      .add-device-center {
        width: 94px;
        .add-btn,
        .del-btn,
        .rest-btn {
          background: rgba(255, 255, 255, 0.10) !important;
          border: 1px solid rgba(255, 255, 255, 0.2);
          border-radius: 4px;
          font-size: 13px;
          color: rgba(255, 255, 255, 0.8);
          opacity: 0.8;
          overflow: hidden;
        }
      }
    }
  }

  .alert-detail-footer {
    display: flex;
    padding: 84px 0 20px;
    justify-content: space-around;
    .alert-detail-footer-btn {
      width: 180px;
      height: 36px;
      margin-left: 10px;
      font-size: 14px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 18px;
      &:hover{
        background-color: #5C72E7;
      }
    }
  }
  /deep/ .tree-com .my-tree {
    li{
      line-height: 30px;
    }
  }
}

.flex-align-center {
  display: flex;
  align-items: center;
}

.item{
  display: flex;
    align-items: center;
  .outer-checkbox{
    position: relative;
    display: inline-block;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 4px;
    width: 16px;
    height: 16px;
  }
  input[type=checkbox] {  
    position: relative; 
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0;
  }  
  input[type=checkbox]::before{  
      content:'';  
      position: absolute;  
      width:100%; 
      height: 100%;  
      opacity: 1;
      cursor: pointer;
      // background: #fff no-repeat;  
  }  
  .inner-checkbox{
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 2px;
    border-collapse: separate;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
  }
  input[type=checkbox]:checked+.inner-checkbox::before {  
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
      background: url("./assets/images/checked.png") no-repeat;
      background-size: contain;
      content: '';  
      // transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  }  
            
}

/deep/ .my-tree{
  .ant-tree {
    &-checkbox-checked::after {
      position: absolute;
      top: 16.67%;
      left: 0;
      width: 100%;
      height: 66.67%;
    }
  }
  .ant-tree-checkbox {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5;
    list-style: none;
    font-feature-settings: 'tnum';
    position: relative;
    top: -0.09em;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    outline: none;
    cursor: pointer;
  }
  .ant-tree li span.ant-tree-checkbox {
    top: initial;
    height: 26px;
    // margin: 0 4px 0 2px;
    padding: 3px 0;
  }
  .ant-tree-checkbox-inner, .ant-checkbox-inner {
    background-color: #222330;
    border: 1px solid #51576C;
    border: none;
    margin-right: 4px;
  }
  .ant-tree-checkbox-inner {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    // border: 1px solid transparent;
    border-radius: 2px;
    border-collapse: separate;
    transition: all 0.3s;
  }
  .ant-tree-checkbox-checked:after {
    position: absolute;
    top: 16.67%;
    left: 0;
    width: 100%;
    height: 66.67%;
  }
  .ant-tree-checkbox-checked:after {
    top: 0;
    height: 100%;
    border: 1px solid #4e68f0;
    border-radius: 2px;
    visibility: hidden;
    animation: antCheckboxEffect .36s ease-in-out;
    animation-fill-mode: backwards;
    content: "";
  }
  .ant-tree-checkbox-checked .ant-tree-checkbox-inner:after {
    position: absolute;
    display: table;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(1) translate(-50%,-50%);
    opacity: 1;
    transition: all .2s cubic-bezier(.12,.4,.29,1.46) .1s;
    content: " ";
  }
  
  .ant-tree-checkbox-inner:after {
    position: absolute;
    top: 50%;
    left: 26%;
    display: table;
    width: 5.71428571px;
    height: 9.14285714px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(0) translate(-50%,-50%);
    opacity: 0;
    transition: all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;
    content: " ";
  }
  
  .ant-checkbox-checked .ant-checkbox-inner, .ant-tree-checkbox-checked .ant-tree-checkbox-inner {
    background-color: #4e68f0;
    border-color: #4e68f0;
  }
}